package per.mapt.spring.boot.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import per.mapt.spring.boot.dao.HelloDao;

/**
 * Created by mapeif on 2017/7/9.
 */
@Service
public class HelloServiceImpl implements HelloService {
    Logger logger = LoggerFactory.getLogger(HelloServiceImpl.class);
    @Autowired
    HelloDao dao;

    @Override
    public String hello(String t) {
        logger.error(t);
        dao.getList();
        return "ht" + t;
    }
}
